<meta name="content-type" content="text/html; charset=UTF-8" />
<!-- #set(PaginatedList<MemberClazz> preMemberClazzList) -->
<!--
		#set(
		pager = preMemberClazzList.pager,
		totalResults = pager.getCountOfTotalResults(),
		totalPages = pager.getCountOfTotalPages() * 1,
		pageSize = pager.pageSize,
		pageNo = pager.pageNo,
		prePageNo = pager.getPrevPageNo(),
		nextPageNo = pager.getNextPageNo()
		)
-->
<!--#if(preMemberClazzList)-->

<table class="table table-bordered table-hover table-condensed"	style="text-align: center;">
	<tr class="active">
		<td>班级名称</td>
		<td>班级状态</td>
		<td>班级负责人</td>
		<td>教室</td>
		<td>教练</td>
		<td>助教</td>
		<td>起始时间</td>
		<td>结束时间</td>
	<tr>
		<!--#for(MemberClazz clazz : preMemberClazzList)-->
	<tr>
		<td>${clazz.clazz.name}</td>
		<td>
			<!-- #if(clazz.clazz.state == 1) -->
				正在进行
			<!-- #else(clazz.clazz.state == 2) -->
				已结束
			<!-- #else(clazz.clazz.state == 3) -->
				已取消
			<!-- #end -->
		</td>
		<td>${clazz.clazz.assignedTo.userDetail.name}</td>
		<td>
			<!-- #for(Chedule chedule : clazz.clazz.chedules) -->
				${chedule.place.name}&nbsp;
			<!-- #end -->
		</td>
		<td>
			<!-- #for(Chedule chedule : clazz.clazz.chedules) -->
				${chedule.teacher.name}&nbsp;
			<!-- #end -->
		</td>
		<td>
			<!-- #for(Chedule chedule : clazz.clazz.chedules) -->
				${chedule.assistant.name}&nbsp;
			<!-- #end -->
		</td>
		<td>${clazz.clazz.startDate.format("yyyy-MM-dd")}</td>
		<td>${clazz.clazz.endDate.format("yyyy-MM-dd")}</td>
	</tr>
	<!--#end-->
</table>
<div class="div_page">
	<ul class="pagination">
		<!-- #if(pageNo==1) -->
			<li class="disabled"><a class="disabled">&laquo;</a></li>
		<!-- #else -->
			<li><a href="searchProducts.jhtml?pageNo=${prePageNo}">&laquo;</a></li>
		<!-- #end -->
		<!-- #for(i : 1..totalPages) -->
			<!-- #if(i== pageNo) -->
				<li class="disabled"><a href="searchProducts.jhtml?pageNo=${i}">${i}</a></li>
			<!-- #else -->
				<!-- #if((i gt pageNo-4)&&(i lt pageNo+4))-->
					<li class=""><a href="searchProducts.jhtml?pageNo=${i}">${i}</a></li>
				<!-- #else -->
					<!-- #if(pageNo-3 gt i)-->
						 <!-- #if(i==1) -->
						 	<li><a href="searchProducts.jhtml?pageNo=${i}">${i}</a></li>
						 <!-- #else -->
						 	 <!-- #if(n==0) -->
                            	<li><a>...</a></li>
                            	<!--#set(n = 1)-->
                        	<!-- #end -->
						 <!-- #end -->
					<!-- #else -->
						<!-- #if(i gt totalPages -2) -->
                    		<li><a href="searchProducts.jhtml?pageNo=${i}">${i}</a></li>
               			 <!-- #else -->
               			 	<!-- #if(m==0)-->
                       			<li><a>...</a></li>
                       		 	<!--#set(m = 1)-->
                   			 <!-- #end -->
               			 <!-- #end -->
					<!-- #end -->
				<!-- #end -->
			<!-- #end -->	
		<!-- #end -->
		<!-- #if(pageNo==totalPages) -->
			<li class="disabled"><a class="disabled">&raquo;</a></li>
		<!-- #else -->
			<li><a href="searchProducts.jhtml?pageNo=${nextPageNo}">&raquo;</a></li>
		<!-- #end -->
		<li><a>第${pageNo}-${totalPages}页/${totalResults}条</a></li>
	</ul>
</div>
<!-- #else -->
<div class="panel-body">
	没有符合条件的数据
</div>
<!-- #end -->